package com.wejoy.video.middle.station.data.mapper.system;

import com.wejoy.video.middle.station.data.domain.system.EvsUser;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * evs用户同步
 *
 * @author admin
 * @date 2024年06月29日 17:04:26
 */
public interface IEvsUserMapper {

    /**
     * 插入
     *
     * @param evsUser evsUser
     * @return int
     */
    int insertSelective(EvsUser evsUser);

    /**
     * 更新
     *
     * @param setParam   setParam
     * @param whereParam whereParam
     * @return int
     */
    int updateSelective(EvsUser setParam, EvsUser whereParam);

    /**
     * 更新
     *
     * @return int
     */
    int updateRoleSelectiveById(@Param("userId") Long userId,@Param("roleId")  String roleId);

    /**
     * 数量
     *
     * @param evsUser evsUser
     * @return int
     */
    int getCount(EvsUser evsUser);

    /**
     * 单条
     *
     * @param evsUser evsUser
     * @return EvsUser
     */
    EvsUser getOne(EvsUser evsUser);

    /**
     * 多条
     *
     * @param evsUser evsUser
     * @return List<EvsUser>
     */
    List<EvsUser> getList(EvsUser evsUser);

    /**
     * 分页
     *
     * @param evsUser evsUser
     * @return List<EvsUser>
     */
    List<EvsUser> getPageList(EvsUser evsUser);


    int deleteByTime(Date date);
}